﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Text;
using System.Data;
using EazyCMS.Common;

namespace EazyCMS.Web.Plugin.Vote
{
    public partial class vote_show : Web.UI.BasePage
    {
        protected int id;
        protected Model.vote model = new Model.vote();

        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        protected override void ShowPage()
        {
            id = EazyRequest.GetQueryInt("id");
            BLL.vote bll = new BLL.vote();
            if (!bll.Exists(id))
            {
                HttpContext.Current.Response.Redirect(linkurl("error", "?msg=" + Utils.UrlEncode("出错啦，您要浏览的页面不存在或已删除！")));
                return;
            }
            model = bll.GetModel(id);
        }
    }
}
